﻿using System;
using OA.DBUtility;

namespace OA.Model
{
    /// <summary>
    /// Project:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    [MappingTable("Project")]
    public class ProjectInfo
    {
        public ProjectInfo()
        { }
        #region Model
        private int _id;
        private string _projectnum;
        private string _projectname;
        private string _constructionnum;
        private string _projecttype;
        private string _brakemode;
        private string _isreply;
        private decimal? _investment;
        private int? _stationcount;
        private int? _controlcentercount;
        private decimal? _linelength;
        private int? _sectioncount;
        private int? _traincount;
        private DateTime? _planstarttime;
        private DateTime? _planopentime;
        private DateTime? _designstarttime;
        private DateTime? _designopentime;
        private string _projectprovince;
        private string _projectcity;
        private string _projectproperty;
        private string _projectphase;
        private string _projectlevel;
        private string _projectimportance;
        private int? _importyear;
        private string _projectfield;
        private int? _precastworkhours;
        private int? _workhours;
        private int? _surplusworkhours;
        private DateTime _createtime = DateTime.Now;
        private string _applycompany;
        private string _mainundertakecompany;
        private string _undertakecompany;
        private string _participatecompany;
        private int _internaltype;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectNum")]
        public string ProjectNum
        {
            set { _projectnum = value; }
            get { return _projectnum; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectName")]
        public string ProjectName
        {
            set { _projectname = value; }
            get { return _projectname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ConstructionNum")]
        public string ConstructionNum
        {
            set { _constructionnum = value; }
            get { return _constructionnum; }
        }
        /// <summary>
        /// 项目下达时间
        /// </summary>
        [DataField("ProjectBriefTime")]
        public DateTime? ProjectBriefTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectType")]
        public string ProjectType
        {
            set { _projecttype = value; }
            get { return _projecttype; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("BrakeMode")]
        public string BrakeMode
        {
            set { _brakemode = value; }
            get { return _brakemode; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("IsReply")]
        public string IsReply
        {
            set { _isreply = value; }
            get { return _isreply; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("Investment")]
        public decimal? Investment
        {
            set { _investment = value; }
            get { return _investment; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("StationCount")]
        public int? StationCount
        {
            set { _stationcount = value; }
            get { return _stationcount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ControlCenterCount")]
        public int? ControlCenterCount
        {
            set { _controlcentercount = value; }
            get { return _controlcentercount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("LineLength")]
        public decimal? LineLength
        {
            set { _linelength = value; }
            get { return _linelength; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("SectionCount")]
        public int? SectionCount
        {
            set { _sectioncount = value; }
            get { return _sectioncount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("TrainCount")]
        public int? TrainCount
        {
            set { _traincount = value; }
            get { return _traincount; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PlanStartTime")]
        public DateTime? PlanStartTime
        {
            set { _planstarttime = value; }
            get { return _planstarttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PlanOpenTime")]
        public DateTime? PlanOpenTime
        {
            set { _planopentime = value; }
            get { return _planopentime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("DesignStartTime")]
        public DateTime? DesignStartTime
        {
            set { _designstarttime = value; }
            get { return _designstarttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("DesignOpenTime")]
        public DateTime? DesignOpenTime
        {
            set { _designopentime = value; }
            get { return _designopentime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectProvince")]
        public string ProjectProvince
        {
            set { _projectprovince = value; }
            get { return _projectprovince; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectCity")]
        public string ProjectCity
        {
            set { _projectcity = value; }
            get { return _projectcity; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectProperty")]
        public string ProjectProperty
        {
            set { _projectproperty = value; }
            get { return _projectproperty; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectPhase")]
        public string ProjectPhase
        {
            set { _projectphase = value; }
            get { return _projectphase; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectLevel")]
        public string ProjectLevel
        {
            set { _projectlevel = value; }
            get { return _projectlevel; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectImportance")]
        public string ProjectImportance
        {
            set { _projectimportance = value; }
            get { return _projectimportance; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ImportYear")]
        public int? ImportYear
        {
            set { _importyear = value; }
            get { return _importyear; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectField")]
        public string ProjectField
        {
            set { _projectfield = value; }
            get { return _projectfield; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PrecastWorkHours")]
        public int? PrecastWorkHours
        {
            set { _precastworkhours = value; }
            get { return _precastworkhours; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("WorkHours")]
        public int? WorkHours
        {
            set { _workhours = value; }
            get { return _workhours; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("SurplusWorkHours")]
        public int? SurplusWorkHours
        {
            set { _surplusworkhours = value; }
            get { return _surplusworkhours; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("CreateTime")]
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ApplyCompany")]
        public string ApplyCompany
        {
            set { _applycompany = value; }
            get { return _applycompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("MainUndertakeCompany")]
        public string MainUndertakeCompany
        {
            set { _mainundertakecompany = value; }
            get { return _mainundertakecompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("UndertakeCompany")]
        public string UndertakeCompany
        {
            set { _undertakecompany = value; }
            get { return _undertakecompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ParticipateCompany")]
        public string ParticipateCompany
        {
            set { _participatecompany = value; }
            get { return _participatecompany; }
        }
        /// <summary>
        /// 内部类型 0 工程项目, 1 集成项目, 2 科研项目
        /// </summary>
        [DataField("Internaltype")]
        public int Internaltype
        {
            set { _internaltype = value; }
            get { return _internaltype; }
        }
        [DataField("ProjectApprovalTime")]
        public DateTime? ProjectApprovalTime { get; set; }
        [DataField("PlanCompleteTime")]
        public DateTime? PlanCompleteTime { get; set; }

        #endregion Model


    }
}

